# -*- encoding:utf-8 -*-
# !/usr/bin/env python
'''
    python-0805-02.py
    ======================
    @descript: 
    @copyright:nnz
    @author:dln
    @date: 2021/8/5 16:38
    @version:v1.0
'''
# 形参的运行过程
# 函数的形参随着函数的执行而创建，随着函数的执行而销毁
from typing import Callable
#abs求绝对值
def f_01(p_01:Callable[[int],int], p_02:int, p_03:float) ->float:
    v_return:float=0
    v_return=p_01(p_02)+p_01(p_03)
    return v_return
    pass
v_return01=f_01(abs,4,-8.5)
print(v_return01)


def f_01(p_01:Callable[[int],int],p_02:int,p_03:int)->int:
    v_return:int=0
    v_return=p_01(p_02)+p_01(p_03)
    return v_return
    pass
v_return01=f_01(abs,3,-3)
print(v_return01)

